<?php
namespace app\user\controller;

use think\Controller;
use app\common\model\User as UserModel;

class IndexController extends Controller
{
    public function index()
    {
        // 入口跳转
//        $this->redirect('');
        $user_list = UserModel::all();
//        $user_list = array('id'=> 10, 'name'=> 'lin', 'phone'=>'123659874');
        foreach ($user_list as $item) {
            echo $item ->id . '</br>';
            echo $item->name . '</br>';
            echo $item->phone . '</br>';
        }
    }
}